package day12;

import java.util.UUID;

public class TestStudent {
    public static void main(String[] args) {
        Student s1 = new Student("1001","admin",Gender.F);
        System.out.println(s1);
        System.out.println(String.valueOf(s1.getGender()));
        System.out.println(s1.getGender().toString());

        String sex = "M";
        String name = "admin";

        Student s2 = new Student();

        s2.setId(UUID.randomUUID().toString());

        s2.setName(name);

        Gender g = Enum.valueOf(Gender.class,sex);
        s2.setGender(g);

        System.out.println(s2);
    }
}
